package com.gnerv.sylvanas.business.manage.model.dto;

import com.gnerv.sylvanas.business.manage.model.bo.OrgBO;
import lombok.Data;
import org.springframework.beans.BeanUtils;

/**
 * @author Gnerv LiGen
 */
@Data
public class OrgUpdateDTO {

    private String ukId;
    private String parentUkId;
    private String name;
    private String status;
    private Integer sort;

    public OrgBO toOrgBO() {
        OrgBO orgBO = new OrgBO();
        BeanUtils.copyProperties(this, orgBO);
        return orgBO;
    }

}